@charset "utf-8";



//村落精选


.caseNav {
    width: 70%;;
    margin: 50px auto 0;
    padding: 0;

    li {
        font-size: 16px;
        text-align: center;
        color: #FFF;
        list-style: none;
        margin-right: 30px;
        display: inline-block;
        padding-bottom: 5px;

        &.on {
            border-bottom: 2px solid #ea5532;
            color: #ea5532;
        }
    }
}

.caseNavSub {
    width: 70%;;
    margin: 50px auto 0;
    padding: 0;

    li {
        font-size: 16px;
        text-align: center;
        color: #FFF;
        list-style: none;
        margin-right: 30px;
        display: inline-block;
        padding-bottom: 5px;

        &.on {
            border-bottom: 2px solid #ea5532;
            color: #ea5532;
        }
    }
}

.caseList {
    width: 70%;
    margin: 3% auto;
    position: relative;
    padding: 0;
    text-align: center;

    //list start
    .case-item {
        width: 19.2%;
        position: relative;
        float: left;
        margin-right: 1%;
        margin-bottom: 2%;

    }

    .case-item:nth-child(5n) {
        margin-right: 0;
    }

    .caseBox{
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        top:0;
        transition: all 0.3s;
        box-shadow: none;


        & > img {
            width: 100%;
            height: 100%;
            transform-origin: 50% 50%;
            -webkit-transform-origin: 50% 50%;
        }

        .hoverBox {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            height: 100%;
            opacity: 0;
            background: rgba(0, 0, 0, 0.85);
            transform: scale(1);
            transition: all 0.6s;


            .case-detail-text {
                position: absolute;
                width: 100%;
                bottom: 70%;
                left: 0px;

                .case-detail-name {
                    font-family: PingFangSC-Light;
                    font-size: 21px;
                    color: #FFFFFF;
                    letter-spacing: 7px;
                }

                .case-detail-addr {
                    font-family: PingFangSC-Light;
                    font-size: 13px;
                    color: #FFFFFF;
                    letter-spacing: 1px;
                    margin-top: 6%;
                }

            }

            .qrcode-contanier {
                position: absolute;
                width: 100%;
                bottom: 26%;
                left: 0px;

                & > img:first-child {
                    width: 65%
                }

                .qrcode {
                    width: 55%;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    -webkit-transform: translate(-50%, -50%);
                }

            }

            .qrcode-promote {
                position: absolute;
                width: 100%;
                bottom: 19%;
                left: 0;
                font-family: PingFangSC-Light;
                font-size: 10px;
                color: #FFFFFF;
                letter-spacing: 4px;
                opacity: 1;
            }

            .viewBtn {
                width: 40%;
                margin: 0 auto;
                border: 1px solid #FFF;
                border-radius: 10px;
                height: 24px;
                text-align: center;
                line-height: 24px;
                position: absolute;
                bottom: 5%;
                left: 30%;
                box-sizing: border-box;
                font-size: 12px;
                color: #FFF;
            }

        }

    }


    .caseName{
        font-size: 14px;
        color: #FFF;
        margin-top: 10px;
    }


    .case-item:hover .hoverBox {
        opacity: 1;
        animation: my 0.5s linear;

    }

    .case-item:hover .caseBox{
        animation: hoverBox 0.5s linear;
        box-shadow: 0 5px 5px #000;
        top:-5px;
        transform: scale(1.05);
    }

    @keyframes my { //透明度变化
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

}


//more
.caseMore {
    display: block;
    width: 200px;
    background: #ea5532;
    border-radius: 40px;
    padding: 9px 25px;
    transition: all .3s ease;
    border: 1.1px solid #F15A3F;
    cursor: pointer;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    letter-spacing: 2.5px;
    margin: 0 auto;
    position: relative;

    &:hover{
        background: none;
        color: #FFF;
        border-color: #FFF;
    }

}


